let paging = new Vue({
    el:".ic_wrap",
    data:{
        //分页数据
        Pagingdata:[],
        rowCount:{},
        pageSize:"12",
        page: 1
    },
    methods:{
        jamcuuhgzhxxjg:function (pageNum) {
            if(!pageNum){
                pageNum = 1;
            }
            if(this.pageSize<1||this.pageSize>20){
                return;
            }
            // let ps = document.querySelector('#ps').innerText;
            axios({
                //
                url:"/edu/dfNewsInfo/news_list",
                //发送get请求至fio
                method:"get",
                params:{
                    pageNum:pageNum,
                    pageSize: this.pageSize,
                    page: this.page
                }
            }).then(function (response) {
                paging.Pagingdata = response.data.list;
                paging.rowCount = response.data;

                /* alert(paging.rowCount.prePage);
                 alert(paging.rowCount.nextPage);


                 for (let i=0;i<paging.rowCount.navigatepageNums;i++){
                     alert(paging.rowCount.navigatepageNums[i]);
                 }*/
                /*
                for (let i=0;i<paging.Pagingdata.length;i++){
                   alert(paging.Pagingdata[i].newsTitle)
               }
*/

            })
        },



    },
    created:function () {
        //调用jamcuuhgzhxxjg方法
        this.jamcuuhgzhxxjg(1);
    }
})

let pages = new Vue({
    el:"#pagev",
    data:{},
    methods: {
        setPage:function(index){
            paging.page = index;
            paging.jamcuuhgzhxxjg(1);
        }
    }
})
